/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package client.adminclient.view;

import server.managerServer.Listener;
import server.PollList;
import server.UdpVoteServer;

/**
 *
 * @author radu
 */
public class TerminalView {

    public static void main(String args[]) {
        if (args.length != 1) {
            System.out.println("usage: java <programName> <port>");
            System.exit(1);
        }

        int port = (new Integer(args[0])).intValue();

        PollList polls = new PollList();
        Listener managerServer = new Listener(port, polls);
        UdpVoteServer voteServer = new UdpVoteServer(port, polls);

        managerServer.start();
        voteServer.start();
    }
}
